package Baitap01;

public class Views {
	public static void main(String[] args) {
        Triangle_Entity objTriEntity = new Triangle_Entity();
        objTriEntity.setSide01(3.0);
        objTriEntity.setSide02(4.0);
        objTriEntity.setSide03(5.0);
       
        Controller objController = new Controller();
        System.out.println("----Tam Giac----");
        System.out.println("Area: "+ objController.ExecuteOfArea(objTriEntity, (short)0)); 
        System.out.println("Perimeter: "+ objController.ExecuteOfPerimeter(objTriEntity, (short)0)); 
     
        Rectangle_Entity objRecEntity = new Rectangle_Entity();
        objRecEntity.setSide01(3.0);
        objRecEntity.setSide02(4.0);
        
        System.out.println("----Chu Nhat----");
        System.out.println("Area: "+ objController.ExecuteOfArea(objRecEntity, (short)1));
        System.out.println("Perimeter: "+ objController.ExecuteOfPerimeter(objRecEntity, (short)1));
        
        Parallelogram_Entity objParEntity = new Parallelogram_Entity();
        objParEntity.setChieucao(5.0);
        objParEntity.setCanhday(6.0);
        objParEntity.setCanhben(7.0);
        
        System.out.println("----Hinh Binh Hanh----");
        System.out.println("Area: "+ objController.ExecuteOfArea(objParEntity, (short)2));
        System.out.println("Perimeter: "+ objController.ExecuteOfPerimeter(objParEntity, (short)2));
        
   }

}
